home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10391 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  46 lines

  1. Path: news.sover.net!news
  2. From: mountain@sover.net (Steve Mount)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: 132x50 textmode
  5. Date: 17 Mar 1996 15:12:02 GMT
  6. Organization: SoVerNet, Inc.
  7. Message-ID: <4iha42$680@thrush.sover.net>
  8. References: <4i9r2a$muv@oslo-nntp.eunet.no>
  9. NNTP-Posting-Host: pm0a6.mid.sover.net
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=US-ASCII
  12. X-Newsreader: WinVN 0.99.7
  13.  
  14. In article <4i9r2a$muv@oslo-nntp.eunet.no>, blarsen@login.eunet.no says...
  15. >
  16. >Can anyone tell me how to set 132x50 text mode with C or c++ or asm ??
  17. >I have a ati mach 64 card..
  18. >In the reference it says 010ah = 132x50 ?
  19. >But how can i set it ??
  20.  
  21. I think this would do it in my MS compiler:
  22.  
  23. ...
  24. union REGS i, o;
  25. ..
  26. i.h.ah = 0;
  27. i.h.al = 0x10a;     // eh?
  28. int86(0x10,&i,&o);
  29. ...
  30.  
  31.  
  32. I'm curious, though, about the mode number.  It should be only one byte, 
  33. as far as I know.  My graphics card docs only give values up to 75.  
  34. The values assigned to i.h.al should be just one byte - I think there
  35. might be some conversion of overwriting if you use a two-byte value.  You
  36. may want to double check your card docs.  And if you're not using an MS
  37. compiler, I'm sure other compilers have calls similar to int86...
  38.  
  39. +============================================================================+
  40. | Steve Mount, Software Engineer            Work: sjjm@hawkeye.idx.com       |
  41. | CIS: 73720,3404  MSN: S_Mountain          Home: mountain@sover.net         |
  42. | AOL: Mountain                                                              |
  43. | WWW: http://www.sover.net/~mountain/      "Fight, Win, Prevail!"           |
  44. +============================================================================+
  45.  
  46.